<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var getOrderlistsUrl="{:U('Finance/get_orderlist')}";//获得订单地址
	var financeEditUrl="{:U('Finance/financeSave')}";//编辑
	<!-- using('../../../default/js/finance.js'); -->

</script>
<script type="text/javascript" src="__PUBLIC__/default/js/finance.js"></script>

	<table id="financeDatagrid" toolbar="#finance_tb"></table>
    <!-- 搜索栏 -->
    <div id="finance_tb">
        <form id="financeSearchForm" method="post" novalidate>
            <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="financeObj.showAll()">全部订单</a>     
            订单编码:<input class="easyui-textbox" name="order_no" style="width:150px;height:30px;">
			客户姓名:<input class="easyui-textbox" name="user_name" style="width:150px;height:30px;">
			物流单号:<input class="easyui-textbox" name="logistics_no" style="width:150px;height:30px;">
			物流企业名称:<input class="easyui-textbox" name="logiscompany_name" style="width:150px;height:30px;">
			推送时间: <input class="easyui-datetimebox" name="start_time" value="{:date('Y-m-1 h:i:s',time())}" style="height:30px;width:150px;">
			- <input class="easyui-datetimebox" name="end_time" value="{:date('Y-m-d h:i:s',time())}" style="height:30px;width:150px;">
			<select class="easyui-combobox" name="is_delivery" style="width:100px;height:30px;">
				<option value="0">未选择</option>
				<option value="1">已出库</option>
				<option value="2">未出库</option>
			</select>
			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
		<!-- <a href="javascript:void(0)" onclick="financeObj.infoBar()" class="easyui-linkbutton" data-options="iconCls:'icon-information',plain:true">详情</a> -->
		<a href="javascript:void(0)" onclick="financeObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">编辑</a>
		
		<a href="javascript:void(0)" onclick="financeObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		
		<a href="javascript:void(0)" onclick="financeObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a>
		
		<a href="javascript:void(0)" onclick="financeObj.excelBar()" class="easyui-linkbutton" data-options="iconCls:'icon-page_excel',plain:true">导出EXCEL</a>
    </div>
    <!-- /搜索栏 -->
	<!-- 编辑 -->
    <div id="financeEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#financeEditButtons"  modal="true">
        <form id="financeEditForm" method="post" novalidate>          
            <div class="fitem">
                <label>订单编号</label>
				<input name="id"  type="hidden" />
                <input name="order_no" class="easyui-textbox" data-options="readonly:true" />
            </div>
            <div class="fitem">
                <label>客户姓名</label>
                <input name="user_name" type="text"  class="easyui-textbox" data-options="readonly:true" />
            </div>
			<div class="fitem">
                <label>销售价</label>
                 <input name="finance_total_price" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>

			<div class="fitem">
                <label>成本价</label>
                 <input name="finance_factory_price" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>税费</label>
                 <input name="finance_goods_tax" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
        </form>
    </div>
    <div id="financeEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="financeObj.save('{:U('Finance/financeSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#financeEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->
</body>